<?php
/**
 * Copyright (c) 2006, PORTALIER Julien
 *
 * Licensed under The LGPL License
 * Redistributions of files must retain the above copyright notice.
 *
 * @package      FeatherCMS
 * @subpackage   Config
 * @copyright    Copyright (c) 2006, Julien PORTALIER
 * @link         http://julien.portalier.com
 * @license      http://www.opensource.org/licenses/lgpl-license.php The LGPL License
 */

// debug & errors
define(DEBUG, 2);
error_reporting(DEBUG ? E_ALL : false);

define(MAIN_SITE_URL, '');

// config
class Config
{
	const website_name      = '';
	const website_email     = '';
	const website_copyright = '';
	
	// groups
	const groups = 'administrator editor author guest member anonymous';
	const admins = 'administrator editor author guest';
	const default_groups = 'member author';
	
	// should administrators override all access rights?
	const power_privileges = false;
	
	// autoload
	public static $autoloads = array(
		'libs'       => array('request', 'titles', 'timer'),
		'components' => array('session', 'locale', 'acl', 'publish'),
		'helpers'    => array('xhtml', 'javascript', 'syntax'/*, 'license'*/),
		'database'   => true
	);
	
	// routes
	public static $routes = array(
		':home/:'   => 'pager/index/home',
		':member/:' => 'members/show/',
		':error/:'  => 'errors/index/'
	);
	
	// session
	const session_auto    = true;
	const session_cookie  = 'FEATHER_PHP_2';
	const session_string  = 'fdcce5a99626576d8a69a93b2d57a924';
	
	// locale
	const charset         = 'UTF-8';
	const locale_default  = 'fr';
	const locale_timezone = 'Europe/Paris';
	
	const license_default = 'cc-by-nc-sa/2.5';
	
	// emails
	const email_charset = 'ISO-8859-15';
	const email_txt_cmd = "lynx -dump -assume_local_charset :charset -display_charset :charset -underline_links -underscore -width 70 -nolist :file";
#	const swift_protocol = 'SMTP';
#	const swift_options  = '';
#	const swift_username = null;
#	const swift_password = null;
	const swift_protocol = 'Sendmail';
	const swift_options  = '/usr/sbin/sendmail -bs';
	
	// cache
#	const cache_lifetime  = DEBUG ? '+1 second' : '+1 day'; # '+1 hour'
	const cache_lifetime  = '+1 second';
}

// locale
mb_language('uni');
mb_internal_encoding(Config::charset);

// gzip output
ob_start("ob_gzhandler");
?>